:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(0, 0, 0, 0.87);
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #3a7bd5;
  text-decoration: inherit;
}
a:hover {
  color: #00d2ff;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
  height: 100%;
}

h1 {
  font-size: 2.2em;
  line-height: 1.1;
}

button {
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #3a7bd5;
}
button:focus,
button:focus-visible {
  outline: 2px auto #3a7bd5;
}

#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: rgba(255, 255, 255, 0.87);
    background-color: #242424;
  }
  a:hover {
    color: #00d2ff;
  }
  button {
    background-color: #1a1a1a;
  }
}

/* Markdown 内容样式支持 */
.message-text {
  /* 确保Markdown内容正确显示 */
  line-height: 1.6;
  word-wrap: break-word;
}

/* Markdown 标题样式 */
.message-text h1,
.message-text h2,
.message-text h3,
.message-text h4,
.message-text h5,
.message-text h6 {
  margin: 1em 0 0.5em 0;
  font-weight: 600;
  line-height: 1.25;
}

.message-text h1 { font-size: 1.8em; }
.message-text h2 { font-size: 1.5em; }
.message-text h3 { font-size: 1.3em; }
.message-text h4 { font-size: 1.1em; }
.message-text h5 { font-size: 1em; }
.message-text h6 { font-size: 0.9em; }

/* Markdown 段落样式 */
.message-text p {
  margin: 0.8em 0;
  line-height: 1.6;
}

/* Markdown 列表样式 */
.message-text ul,
.message-text ol {
  margin: 0.8em 0;
  padding-left: 2em;
}

.message-text li {
  margin: 0.3em 0;
  line-height: 1.5;
}

/* Markdown 代码样式 */
.message-text code {
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

.message-text pre {
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}

.message-text pre code {
  background-color: transparent;
  padding: 0;
}

/* Markdown 引用样式 */
.message-text blockquote {
  border-left: 4px solid #ddd;
  margin: 1em 0;
  padding-left: 1em;
  color: #666;
  font-style: italic;
}

/* Markdown 表格样式 */
.message-text table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

.message-text th,
.message-text td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}

.message-text th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Markdown 链接样式 */
.message-text a {
  color: #3a7bd5;
  text-decoration: none;
}

.message-text a:hover {
  text-decoration: underline;
}

/* Markdown 强调样式 */
.message-text strong {
  font-weight: 600;
}

.message-text em {
  font-style: italic;
}

/* Markdown 分割线样式 */
.message-text hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* Markdown 图片样式 */
.message-text img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5em 0;
}

